package com.yaorange.util;

/**
 * @author 15332
 * @version 1.0
 * @date 2025/6/10 20:24
 * @description ThreadLocal工具类
 */
public class ThreadLocalUtil{

  private static ThreadLocal threadLocal = new ThreadLocal();

  /**
   * 添加
   * @param object
   */
  public static void set(Object object){
    threadLocal.set(object);
  }

  /**
   * 获取数据
   * @return
   */
  public static Object get(){
      return threadLocal.get();
  }

  /**
   * 删除数据
   */
  public static void remove(){
    threadLocal.remove();
  }


}
